package com.twu.biblioteca;

public class Movie extends LibraryItem {
    private int yearReleased;
    private String director;
    private int rating;

    public Movie(String title, int yearReleased, String director, int rating) {
        super(title);
        this.yearReleased = yearReleased;
        this.director = director;
        this.rating = rating;
    }

    public int getYearReleased() {
        return yearReleased;
    }

    public String getDirector() {
        return director;
    }

    public int getRating() {
        return rating;
    }

    public boolean isUnrated() {
        if (rating < 1) {
            return true;
        } else {
            return false;
        }
    }
}
